Avoid visibly resizing the file chooser at startup
authorFederico Mena Quintero <federico@novell.com>
Wed, 14 Jan 2009 20:18:40 +0000 (20:18 +0000)
committerFederico Mena Quintero <federico@src.gnome.org>
Wed, 14 Jan 2009 20:18:40 +0000 (20:18 +0000)
commit1d4694ec799a0ade83ea071d929e41aa980fe21b
treeac10a1e5ceb7f2685a86cad376858fc2ad1c13b8
parentb05fcd7e6b20763aa7c7c7cbbb1bb1abe23cf8e6
Avoid visibly resizing the file chooser at startup
* gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_map):
Don't change the default size in ::map() so we don't flicker...
(gtk_file_chooser_default_realize): ... so do it in ::realize()
instead, when the window is not yet visible.  This avoids a
dialog-that-resizes when you first pop up the file chooser.
(emit_default_size_changed): Just emit the signal; don't check for
the widget's state so we can be emitted during the initial
::realize() when we are not mapped yet.
(update_preview_widget_visibility): Only emit default_size_changed
if the widget is not mapped, to avoid resizing the dialog while it
is visible.

Signed-off-by: Federico Mena Quintero <federico@novell.com>
svn path=/trunk/; revision=22117
ChangeLog
gtk/gtkfilechooserdefault.c